package com.shop.pojo.oms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

//订单表
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("oms_order")
public class Oms_Order {
    @TableId(type = IdType.AUTO)
    private Long id;//
    private Long member_id;//member_id
    private String order_sn;//订单号
    private Long coupon_id;//使用的优惠券
    private Date create_time;//create_time
    private String member_username;//用户名
    private double total_amount;//订单总额
    private double pay_amount;//应付总额
    private double freight_amount;//运费金额
    private double promotion_amount;//促销优化金额（促销价、满减、阶梯价）
    private double integration_amount;//积分抵扣金额
    private double coupon_amount;//优惠券抵扣金额
    private double discount_amount;//后台调整订单使用的折扣金额
    private int pay_type;//支付方式【1->支付宝；2->微信；3->银联； 4->货到付款；】',
    private int source_type;//订单来源[0->PC订单；1->app订单]',
    private int status; //订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】',
    private String delivery_company;//物流公司(配送方式)',
    private String delivery_sn;//物流单号',
    private int auto_confirm_day;//自动确认时间（天）',
    private int integration;//可以获得的积分',
    private int growth;//可以获得的成长值',
    private int bill_type;//发票类型[0->不开发票；1->电子发票；2->纸质发票]',
    private String bill_header;//发票抬头',
    private String bill_content;//发票内容',
    private String bill_receiver_phone;//收票人电话',
    private String bill_receiver_email;//收票人邮箱',
    private String receiver_name;//收货人姓名',
    private String receiver_phone;//收货人电话',
    private String receiver_post_code;//收货人邮编',
    private String receiver_province;//省份/直辖市',
    private String receiver_city;//城市',
    private String receiver_region;//区',
    private String receiver_detail_address;//详细地址',
    private String note;//订单备注',
    private int confirm_status;//确认收货状态[0->未确认；1->已确认]',
    private int delete_status;//删除状态【0->未删除；1->已删除】',
    private int use_integration;//下单时使用的积分',
    private Date payment_time;//支付时间',
    private Date delivery_time;//发货时间',
    private Date receive_time;//确认收货时间',
    private Date comment_time;//评价时间',
    private Date modify_time;//修改时间',

}
